const mongoose = require('mongoose');
const memberInfoSchema = new mongoose.Schema({
    member_id: {
        type: String,
        unique: true,
        required: true
    },
    member_name: {
        type: String,
        required: true
    },
    member_level: {
        type: String,
        required: true
    },
    money: {
        type: Number,
        required: true
    },
    discount: {
        type: Number,
        required: true
    },
    remaining_sum: {
        type: Number,
        required: true
    },
    member_status:{
        type:String,
        unique:false,
        default:"正常"
    }
});
module.exports = mongoose.model('member information', memberInfoSchema);